﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

using DevExpress.XtraEditors;
using Library;
using Library.UI;
using Library.UI.Grid;
using NCKH.models;
namespace NCKH.View.DanhMuc
{
    public partial class frmGiangVien : DevExpress.XtraEditors.XtraForm
    {
        public frmGiangVien()
        {
            InitializeComponent();
        }

        private void frmGiangVien_Load(object sender, EventArgs e)
        {
            //Context db = new Context();
            //gridView.Config(true, false, false, false, false, false, false, false, false);
            //gridView.Config2(DevExpress.XtraGrid.Views.Grid.GridMultiSelectMode.RowSelect, false, true);
            //vw1GiangVienBindingSource.DataSource = db.vw_1_GiangViens;
        }
        private void gridView_FocusedRowChanged(object sender, DevExpress.XtraGrid.Views.Base.FocusedRowChangedEventArgs e)
        {
            //var giangVien = gridView.GetFocusedRow() as vw_1_GiangVien;

            //if (giangVien == null) return;

            //txtMaGiangVien.Text = giangVien.Ma_cb;
            //txtHoTen.Text = giangVien.Ho_ten;

            //rbtNam.Checked = giangVien.Gioi_tinh == "Nam" ? true : false;
            //rbtNu.Checked = giangVien.Gioi_tinh == "Nữ" ? true : false;

            //dteNgaySinh.EditValue = giangVien.Ngay_sinh;
            
            //ledHocHam.EditValue = giangVien.ID_hoc_ham;
            //ledHocVi.EditValue = giangVien.ID_hoc_vi;
            //ledChucDanh.EditValue = giangVien.ID_chuc_danh;
            //ledChucVu.EditValue = giangVien.ID_chuc_vu;
        }


    }
}